<?php
session_save_path('../sessions');
session_start();


    // Connect to our database
    include("dbconnection.php");
    
  //select house 
    $db_query = "UPDATE $TABLE_HOME SET $TABLE_HOME_PRICE=0, $TABLE_HOME_COMMENTS = 'Sold' WHERE $TABLE_HOME_HOMEID=".$_POST['id'];

    // Execute the query
    mysql_query($db_query);
    
    // Close the connection
    mysql_close();
    
    // Make sure the same activation can't be performed again until you go back to the activation page
    unset($_SESSION['activation']);

    // Go back to where we were
    header("location:../finan_monitorbuy.php");
    
